{% extends "WbiSocialBundle::layout.html.twig" %}

{% block wbiblog_body %}
<article>
<h1>Posts</h1>

<table class="record_properties">
    <tbody>
        <tr>
            <th>Id</th>
            <td>{{ entity.id }}</td>
        </tr>
        <tr>
            <th>Postauthor</th>
            <td>{{ entity.postAuthor }}</td>
        </tr>
        <tr>
            <th>Postdate</th>
            <td>{{ entity.postDate|date('Y-m-d H:i:s') }}</td>
        </tr>
        <tr>
            <th>Postcontent</th>
            <td>{{ entity.postContent }}</td>
        </tr>
        <tr>
            <th>Posttitle</th>
            <td>{{ entity.postTitle }}</td>
        </tr>
        
        <tr>
            <th>Postname</th>
            <td>{{ entity.postName }}</td>
        </tr>
       
     </tbody>
</table>

<ul class="record_actions">
    <li>
        <a href="{{ path('posts') }}">
            Back to the list
        </a>
    </li>
    <li>
        <a href="{{ path('posts_edit', { 'id': entity.id }) }}">
            Edit
        </a>
    </li>
    <li>
        <form action="{{ path('posts_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit">Delete</button>
        </form>
    </li>
</ul>
</article>
 {% endblock %}